body, page {
	background-color: var(--system-bg-color);
	font-size: 28rpx;
	color: #000;
	font-family: Helvetica Neue, Helvetica, sans-serif;
}

view,
scroll-view,
swiper,
button,
input,
textarea,
label,
navigator,
image {
	box-sizing: border-box;
}

/* -- 安全距离 --  */

.safe-area-top {
	padding-top: constant(safe-area-inset-top);
	padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
}

/* -- 清除浮动 --  */

.cf::after,
.cf::before {
	content: " ";
	display: table;
}
.cf::after {
	clear: both;
}

.hidden {
	overflow: hidden;
}

.scroll-y {
	overflow-y: auto;
}

.scroll-x {
	overflow-x: auto;
}

::-webkit-scrollbar {
	display: none;
}

.width-full {
	width: 100%;
}

.height-full {
	height: 100%;
}

.width-0 {
	width: 0;
}

.height-0 {
	height: 0;
}

.vw-full {
	width: 100vw;
}

.vh-full {
	height: 100vh;
}

/*  -- 圆角 -- */

$radius-sizes: 4, 8, 10, 12, 16, 20, 24, 32, 48;

@each $size in $radius-sizes {
  .radius-#{$size} {
    border-radius: #{$size}rpx;
  }
}

/*  -- flex弹性布局 -- */

.flex {
	display: flex;
}

$flex-sizes: 1, 2, 3, 4, 5, 6;

@each $size in $flex-sizes {
  .flex-#{$size} {
    flex: #{$size};
  }
}

.flex-column {
	flex-direction: column;
}

.flex-wrap {
	flex-wrap: wrap;
}

.align-start {
	align-items: flex-start;
}

.align-end {
	align-items: flex-end;
}

.align-center {
	align-items: center;
}

.align-stretch {
	align-items: stretch;
}

.self-start {
	align-self: flex-start;
}

.self-center {
	align-self: center;
}

.self-end {
	align-self: flex-end;
}

.self-stretch {
	align-self: stretch;
}

.align-stretch {
	align-items: stretch;
}

.justify-start {
	justify-content: flex-start;
}

.justify-end {
	justify-content: flex-end;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-around {
	justify-content: space-around;
}

/*  -- flex布局的间距 -- */

$gap-sizes: 4, 8, 12, 16, 20, 24, 32, 40, 48;

@each $size in $gap-sizes {
  .gap-#{$size} {
    gap: #{$size}rpx;
  }
}

/*  -- 内外边距 -- */

$margin-sizes: 0, 4, 8, 10, 12, 16, 20, 24, 32, 40, 48;

@each $size in $margin-sizes {
	.m-#{$size} {
		margin: #{$size}rpx;
	}
}

@each $size in $margin-sizes {
	.m-t-#{$size} {
		margin-top: #{$size}rpx;
	}
}

@each $size in $margin-sizes {
	.m-r-#{$size} {
		margin-right: #{$size}rpx;
	}
}

@each $size in $margin-sizes {
	.m-b-#{$size} {
		margin-bottom: #{$size}rpx;
	}
}

@each $size in $margin-sizes {
	.m-l-#{$size} {
		margin-left: #{$size}rpx;
	}
}

@each $size in $margin-sizes {
	.m-lr-#{$size} {
		margin-left: #{$size}rpx;
		margin-right: #{$size}rpx;
	}
}

@each $size in $margin-sizes {
	.m-tb-#{$size} {
		margin-top: #{$size}rpx;
		margin-bottom: #{$size}rpx;
	}
}

$padding-sizes: 0, 4, 8, 10, 12, 16, 20, 24, 32, 40, 48;

@each $size in $padding-sizes {
	.p-#{$size} {
		padding: #{$size}rpx;
	}
}

@each $size in $padding-sizes {
	.p-t-#{$size} {
		padding-top: #{$size}rpx;
	}
}

@each $size in $padding-sizes {
	.p-r-#{$size} {
		padding-right: #{$size}rpx;
	}
}

@each $size in $padding-sizes {
	.p-b-#{$size} {
		padding-bottom: #{$size}rpx;
	}
}

@each $size in $padding-sizes {
	.p-l-#{$size} {
		padding-left: #{$size}rpx;
	}
}

@each $size in $padding-sizes {
	.p-lr-#{$size} {
		padding-left: #{$size}rpx;
		padding-right: #{$size}rpx;
	}
}

@each $size in $padding-sizes {
	.p-tb-#{$size} {
		padding-top: #{$size}rpx;
		padding-bottom: #{$size}rpx;
	}
}

/* -- 实线 -- */

.solid,
.solid-top,
.solid-right,
.solid-bottom,
.solid-left {
	position: relative;
}

.solid::after,
.solid-top::after,
.solid-right::after,
.solid-bottom::after,
.solid-left::after {
	content: " ";
	width: 200%;
	height: 200%;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: inherit;
	transform: scale(0.5);
	transform-origin: 0 0;
	pointer-events: none;
	box-sizing: border-box;
}

.solid::after {
	border: 1rpx solid var(--border-color);
}

.solid-top::after {
	border-top: 1rpx solid var(--border-color);
}

.solid-right::after {
	border-right: 1rpx solid var(--border-color);
}

.solid-bottom::after {
	border-bottom: 1rpx solid var(--border-color);
}

.solid-left::after {
	border-left: 1rpx solid var(--border-color);
}

/* -- 文本 -- */

$font-sizes: 20, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50;

@each $size in $font-sizes {
  .font-#{$size} {
    font-size: #{$size}rpx;
  }
}

.text-bold {
	font-weight: bold;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.text-content {
	line-height: 1.6;
	word-break: break-all;
}

.text-break {
	word-break: break-all;
}

.text-underline{
	text-decoration: line-through;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-l2 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}

.text-red {
	color: #e54d42;
}

.text-orange {
	color: #f37b1d;
}

.text-yellow {
	color: #fbbd08;
}

.text-green {
	color: #39b54a;
}

.text-blue {
	color: #0081ff;
}

.text-grey {
	color: #8799a3;
}

.text-gray {
	color: #aaa;
}

.text-desc {
	color: #999;
}

.text-black {
	color: #000;
}

.text-white {
	color: #fff;
}

.text-primary {
	color: var(--nut-primary-color);
}

.bg-white {
	background-color: #fff;
}

.bg-primary {
	background-color: var(--nut-primary-color);
}

.bg-system {
	background-color: var(--system-bg-color);
}

.input-placeholder {
	color: #CDCFD3;
}

.haptics-feedback:active {
	opacity: 0.6;
}